package com.meituan.sdk.model.wmoperNg.food.toppingGroupBatchQuery;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;
import javax.validation.constraints.NotEmpty;

/**
* 查询小料组接口
* This file was automatically generated.
*/
@ApiMeta(
    path = "/wmoper/ng/food/toppingGroup/batchQuery",
    businessId = 16,
    apiVersion = "10047",
    apiName = "topping_group_batch_query",
    needAuth = true
)
public class ToppingGroupBatchQueryRequest implements MeituanRequest<List<OpenToppingGroup>> {
    /**
    * <p data-diff-id="ct-diff-id-86ccd572-e4c2-4e86-9315-e8ea201f2bee">需要查询的codes，最大200</p>
    */
    @NotEmpty(message = "toppingGroupCodes不能为空")
    @SerializedName("toppingGroupCodes")
    private List<String> toppingGroupCodes;

    public List<String> getToppingGroupCodes() {
        return toppingGroupCodes;
    }
    public void setToppingGroupCodes(List<String> toppingGroupCodes) {
        this.toppingGroupCodes = toppingGroupCodes;
    }


    @Override
    public MeituanResponse<List<OpenToppingGroup>> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<List<OpenToppingGroup>>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "ToppingGroupBatchQueryRequest{" + "toppingGroupCodes=" + toppingGroupCodes + "}";
    }
}
